.class Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;
.super Ljava/lang/Object;
.source "FootprintCamera.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/htc/android/footprints/activity/FootprintCamera;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "ImageCapture"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/FootprintCamera;


# direct methods
.method private constructor <init>(Lcom/htc/android/footprints/activity/FootprintCamera;)V
    .locals 0
    .parameter

    .prologue
    .line 474
    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/htc/android/footprints/activity/FootprintCamera;Lcom/htc/android/footprints/activity/FootprintCamera$1;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 474
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;-><init>(Lcom/htc/android/footprints/activity/FootprintCamera;)V

    return-void
.end method

.method private capture()V
    .locals 8

    .prologue
    .line 599
    :try_start_0
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mCameraDevice:Landroid/hardware/Camera;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1300(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/hardware/Camera;

    move-result-object v2

    invoke-virtual {v2}, Landroid/hardware/Camera;->getParameters()Landroid/hardware/Camera$Parameters;

    move-result-object v1

    .line 601
    .local v1, parameters:Landroid/hardware/Camera$Parameters;
    const-string v2, "jpeg-quality"

    const/16 v3, 0x55

    invoke-virtual {v1, v2, v3}, Landroid/hardware/Camera$Parameters;->set(Ljava/lang/String;I)V

    .line 603
    const/16 v2, 0x190

    const/16 v3, 0x190

    invoke-virtual {v1, v2, v3}, Landroid/hardware/Camera$Parameters;->setPictureSize(II)V

    .line 604
    const-string v2, "rotation"

    const/16 v3, 0x5a

    invoke-virtual {v1, v2, v3}, Landroid/hardware/Camera$Parameters;->set(Ljava/lang/String;I)V

    .line 606
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mCameraDevice:Landroid/hardware/Camera;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1300(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/hardware/Camera;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/hardware/Camera;->setParameters(Landroid/hardware/Camera$Parameters;)V

    .line 607
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mCameraDevice:Landroid/hardware/Camera;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1300(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/hardware/Camera;

    move-result-object v2

    new-instance v3, Lcom/htc/android/footprints/activity/FootprintCamera$ShutterCallback;

    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    const/4 v5, 0x0

    invoke-direct {v3, v4, v5}, Lcom/htc/android/footprints/activity/FootprintCamera$ShutterCallback;-><init>(Lcom/htc/android/footprints/activity/FootprintCamera;Lcom/htc/android/footprints/activity/FootprintCamera$1;)V

    const/4 v4, 0x0

    new-instance v5, Lcom/htc/android/footprints/activity/FootprintCamera$JpegPictureCallback;

    iget-object v6, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    const/4 v7, 0x0

    invoke-direct {v5, v6, v7}, Lcom/htc/android/footprints/activity/FootprintCamera$JpegPictureCallback;-><init>(Lcom/htc/android/footprints/activity/FootprintCamera;Lcom/htc/android/footprints/activity/FootprintCamera$1;)V

    invoke-virtual {v2, v3, v4, v5}, Landroid/hardware/Camera;->takePicture(Landroid/hardware/Camera$ShutterCallback;Landroid/hardware/Camera$PictureCallback;Landroid/hardware/Camera$PictureCallback;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 613
    .end local v1           #parameters:Landroid/hardware/Camera$Parameters;
    :goto_0
    return-void

    .line 609
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 610
    .local v0, e:Ljava/lang/Exception;
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 611
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-virtual {v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->finish()V

    goto :goto_0
.end method

.method private createFootprints(Landroid/net/Uri;)V
    .locals 6
    .parameter "lastUri"

    .prologue
    const/4 v3, -0x1

    const-class v5, Lcom/htc/android/footprints/activity/PostcardActivity;

    const-string v4, "FIX_LOCATION"

    .line 553
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->isRecaputre:I
    invoke-static {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$400(Lcom/htc/android/footprints/activity/FootprintCamera;)I

    move-result v1

    const/4 v2, 0x2

    if-ne v1, v2, :cond_0

    .line 555
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    const-class v2, Lcom/htc/android/footprints/activity/PostcardActivity;

    invoke-direct {v0, v1, v5}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 558
    .local v0, createFootprints:Landroid/content/Intent;
    invoke-virtual {v0, p1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 559
    const-string v1, "FIX_LOCATION"

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mFixLocation:Landroid/location/Location;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$500(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/location/Location;

    move-result-object v1

    invoke-virtual {v0, v4, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 562
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-virtual {v1, v3, v0}, Lcom/htc/android/footprints/activity/FootprintCamera;->setResult(ILandroid/content/Intent;)V

    .line 563
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->finish()V

    .line 595
    :goto_0
    return-void

    .line 564
    .end local v0           #createFootprints:Landroid/content/Intent;
    :cond_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->isRecaputre:I
    invoke-static {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$400(Lcom/htc/android/footprints/activity/FootprintCamera;)I

    move-result v1

    const/4 v2, 0x1

    if-ne v1, v2, :cond_1

    .line 566
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    const-class v2, Lcom/htc/android/footprints/activity/DetailViewActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 569
    .restart local v0       #createFootprints:Landroid/content/Intent;
    invoke-virtual {v0, p1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 570
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-virtual {v1, v3, v0}, Lcom/htc/android/footprints/activity/FootprintCamera;->setResult(ILandroid/content/Intent;)V

    .line 571
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->finish()V

    goto :goto_0

    .line 573
    .end local v0           #createFootprints:Landroid/content/Intent;
    :cond_1
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    const-class v2, Lcom/htc/android/footprints/activity/PostcardActivity;

    invoke-direct {v0, v1, v5}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 575
    .restart local v0       #createFootprints:Landroid/content/Intent;
    const-string v1, "LAUNCH_BY_WIDGET"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->isLanuchByWidget:Z
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$600(Lcom/htc/android/footprints/activity/FootprintCamera;)Z

    move-result v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 578
    invoke-virtual {v0, p1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 580
    const-string v1, "FIX_LOCATION"

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mFixLocation:Landroid/location/Location;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$500(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/location/Location;

    move-result-object v1

    invoke-virtual {v0, v4, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 582
    const-string v1, "TITLE_NAME"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mTitle:Ljava/lang/String;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$800(Lcom/htc/android/footprints/activity/FootprintCamera;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 584
    const-string v1, "ADDRESS"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mAddress:Ljava/lang/String;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$900(Lcom/htc/android/footprints/activity/FootprintCamera;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 586
    const-string v1, "PHONE"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mPhone:Ljava/lang/String;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1000(Lcom/htc/android/footprints/activity/FootprintCamera;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 587
    const-string v1, "WEBSITE"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mUrl:Ljava/lang/String;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1100(Lcom/htc/android/footprints/activity/FootprintCamera;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 589
    const-string v1, "CATEGORY"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mSelectedCategory:Lcom/htc/android/footprints/vo/Category;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1200(Lcom/htc/android/footprints/activity/FootprintCamera;)Lcom/htc/android/footprints/vo/Category;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 590
    const-string v1, "FootprintCamera"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "put category to parcel: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mSelectedCategory:Lcom/htc/android/footprints/vo/Category;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1200(Lcom/htc/android/footprints/activity/FootprintCamera;)Lcom/htc/android/footprints/vo/Category;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 592
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-virtual {v1, v0}, Lcom/htc/android/footprints/activity/FootprintCamera;->startActivity(Landroid/content/Intent;)V

    .line 593
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->finish()V

    goto/16 :goto_0
.end method

.method private createFootprints(Ljava/lang/String;)V
    .locals 7
    .parameter "newPhotoPath"

    .prologue
    const/4 v4, -0x1

    const-class v6, Lcom/htc/android/footprints/activity/PostcardActivity;

    const-string v5, "FIX_LOCATION"

    const-string v3, "EXTRA_PHOTO_PATH"

    .line 506
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->isRecaputre:I
    invoke-static {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$400(Lcom/htc/android/footprints/activity/FootprintCamera;)I

    move-result v1

    const/4 v2, 0x2

    if-ne v1, v2, :cond_0

    .line 508
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    const-class v2, Lcom/htc/android/footprints/activity/PostcardActivity;

    invoke-direct {v0, v1, v6}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 510
    .local v0, createFootprints:Landroid/content/Intent;
    const-string v1, "EXTRA_PHOTO_PATH"

    invoke-virtual {v0, v3, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 511
    const-string v1, "FIX_LOCATION"

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mFixLocation:Landroid/location/Location;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$500(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/location/Location;

    move-result-object v1

    invoke-virtual {v0, v5, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 513
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-virtual {v1, v4, v0}, Lcom/htc/android/footprints/activity/FootprintCamera;->setResult(ILandroid/content/Intent;)V

    .line 514
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->finish()V

    .line 549
    :goto_0
    return-void

    .line 515
    .end local v0           #createFootprints:Landroid/content/Intent;
    :cond_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->isRecaputre:I
    invoke-static {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$400(Lcom/htc/android/footprints/activity/FootprintCamera;)I

    move-result v1

    const/4 v2, 0x1

    if-ne v1, v2, :cond_1

    .line 517
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    const-class v2, Lcom/htc/android/footprints/activity/DetailViewActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 520
    .restart local v0       #createFootprints:Landroid/content/Intent;
    const-string v1, "EXTRA_PHOTO_PATH"

    invoke-virtual {v0, v3, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 521
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-virtual {v1, v4, v0}, Lcom/htc/android/footprints/activity/FootprintCamera;->setResult(ILandroid/content/Intent;)V

    .line 522
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->finish()V

    goto :goto_0

    .line 524
    .end local v0           #createFootprints:Landroid/content/Intent;
    :cond_1
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    const-class v2, Lcom/htc/android/footprints/activity/PostcardActivity;

    invoke-direct {v0, v1, v6}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 526
    .restart local v0       #createFootprints:Landroid/content/Intent;
    const-string v1, "LAUNCH_BY_WIDGET"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->isLanuchByWidget:Z
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$600(Lcom/htc/android/footprints/activity/FootprintCamera;)Z

    move-result v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 528
    const-string v1, "EXTRA_PHOTO_PATH"

    invoke-virtual {v0, v3, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 530
    const-string v1, "FIX_LOCATION"

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mFixLocation:Landroid/location/Location;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$500(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/location/Location;

    move-result-object v1

    invoke-virtual {v0, v5, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 532
    const-string v1, "FIX_NETWORK"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mFixNetwork:Landroid/location/Location;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$700(Lcom/htc/android/footprints/activity/FootprintCamera;)Landroid/location/Location;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 534
    const-string v1, "TITLE_NAME"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mTitle:Ljava/lang/String;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$800(Lcom/htc/android/footprints/activity/FootprintCamera;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 536
    const-string v1, "ADDRESS"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mAddress:Ljava/lang/String;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$900(Lcom/htc/android/footprints/activity/FootprintCamera;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 538
    const-string v1, "PHONE"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mPhone:Ljava/lang/String;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1000(Lcom/htc/android/footprints/activity/FootprintCamera;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 540
    const-string v1, "WEBSITE"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mUrl:Ljava/lang/String;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1100(Lcom/htc/android/footprints/activity/FootprintCamera;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 543
    const-string v1, "CATEGORY"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mSelectedCategory:Lcom/htc/android/footprints/vo/Category;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1200(Lcom/htc/android/footprints/activity/FootprintCamera;)Lcom/htc/android/footprints/vo/Category;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 544
    const-string v1, "FootprintCamera"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "put category to parcel: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mSelectedCategory:Lcom/htc/android/footprints/vo/Category;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1200(Lcom/htc/android/footprints/activity/FootprintCamera;)Lcom/htc/android/footprints/vo/Category;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 546
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-virtual {v1, v0}, Lcom/htc/android/footprints/activity/FootprintCamera;->startActivity(Landroid/content/Intent;)V

    .line 547
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->finish()V

    goto/16 :goto_0
.end method


# virtual methods
.method public onSnap()V
    .locals 3

    .prologue
    .line 616
    invoke-static {}, Lcom/htc/android/footprints/utils/StorageUtil;->isExternalStorageEnough()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/htc/android/footprints/utils/StorageUtil;->isInternalStorageEnough()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 617
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    const/4 v1, 0x4

    #setter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mStatus:I
    invoke-static {v0, v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1602(Lcom/htc/android/footprints/activity/FootprintCamera;I)I

    .line 618
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    #getter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mImageCapture:Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1700(Lcom/htc/android/footprints/activity/FootprintCamera;)Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;

    move-result-object v0

    invoke-direct {v0}, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->capture()V

    .line 630
    :goto_0
    return-void

    .line 620
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    const/4 v1, 0x1

    #setter for: Lcom/htc/android/footprints/activity/FootprintCamera;->mStatus:I
    invoke-static {v0, v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->access$1602(Lcom/htc/android/footprints/activity/FootprintCamera;I)I

    .line 621
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/FootprintCamera;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0a005f

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/htc/android/footprints/utils/FootprintUtils;->showToast(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public storeImage([BLandroid/hardware/Camera;)V
    .locals 5
    .parameter "data"
    .parameter "camera"

    .prologue
    .line 477
    :try_start_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    invoke-static {v3, v4}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v0

    .line 492
    .local v0, current_time:Ljava/lang/String;
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ".jpg"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 495
    .local v2, photo_name:Ljava/lang/String;
    invoke-static {}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getInstance()Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

    move-result-object v3

    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-virtual {v4}, Lcom/htc/android/footprints/activity/FootprintCamera;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v4

    invoke-virtual {v3, v4, p1, v2}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->forceWriteToFile(Landroid/content/ContentResolver;[BLjava/lang/String;)Z

    .line 496
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getDirectory()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    sget-object v4, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-direct {p0, v3}, Lcom/htc/android/footprints/activity/FootprintCamera$ImageCapture;->createFootprints(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 502
    .end local v0           #current_time:Ljava/lang/String;
    .end local v2           #photo_name:Ljava/lang/String;
    :goto_0
    return-void

    .line 498
    :catch_0
    move-exception v3

    move-object v1, v3

    .line 499
    .local v1, ex:Ljava/lang/Exception;
    const-string v3, "FootprintCamera"

    const-string v4, "Exception while compressing image."

    invoke-static {v3, v4, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_0
.end method
